
#include <vector>
#include <winsock.h>
#include "ServerSideUser.h"
#include "ServerSideUserList.h"
using namespace std;

class CSocketList
{
private:
	vector<SOCKET> _mySocketList;
	vector<char*> _myUserList;
	
public:
	vector<char*> MyUserList() const { return _myUserList; }
	void MyUserList(vector<char*> val) { _myUserList = val; }
	int FindBySocket(SOCKET);
	int FindByUserName(char*);
	SOCKET GetByIndex(int);
	void Push(SOCKET iSocket);
	int Size();
	bool SetUserName(int,char*);
	bool CheckUser(char* username,char* pass,SOCKET);
	void UserLogout(char* username);
	CSocketList(void);
	~CSocketList(void);
};
